package com.trt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author tanrentao
 * @date 2021-11-05
 * @desc
 */
@SpringBootApplication
@MapperScan(basePackages = "com.trt.mapper")
@ComponentScan(basePackages = {"com.trt", "org.n3r.idworker"})
@EnableMongoRepositories // 开启MongoDB扫描器
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
